import { View } from "@tarojs/components";
import { THEME } from '@/utils/theme'
import Taro from "@tarojs/taro";

const Page = ({ children }) => {
    const themeType = Taro.getStorageSync('themeType') || 'normal'
    
    return (
        <View style={{ minHeight: '100vh', backgroundColor: THEME[themeType].styles['--pageBackground'] }}>
            {children}
        </View>
    )
}

export default Page;
